package com.gxa.controller;

import com.gxa.common.LayR;
import com.gxa.param.MyTableParam;
import com.gxa.service.OrderFormService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@RequestMapping("/orderbuy")
public class orderFormController {
    @Autowired
    private OrderFormService service;

    @GetMapping("/list/page")
    public String list(){
        return "orderForm/order_list";
    }

    /**
     * 列表数据
     * @return
     */
    @PostMapping("/list/data")
    @ResponseBody
    public LayR listData(MyTableParam param){
        return service.list(param);
    }



}
